package a.j.a;

import a.c.e;
import a.c.w;
import a.d.s;
import a.d.u;
import a.j.g;
import a.j.*;

import java.awt.*;
import java.awt.geom.Dimension2D;
import java.awt.geom.Rectangle2D;

public class c
  implements n.b_, md.h_, md.k_
{
  private boolean a;
  static Class b;
  public static boolean c;
  
  public c()
  {
    this(false);
  }
  
  public c(boolean paramBoolean)
  {
    this.a = paramBoolean;
  }
  
  public boolean a()
  {
    return this.a;
  }
  
  public void a(boolean paramBoolean)
  {
    this.a = paramBoolean;
  }
  
  private boolean f(ld paramld)
  {
    int i = j.v;
    j localj = k(paramld);
    if ((i != 0) || (localj != null)) {
      if (i != 0) {
        break label39;
      }
    }
    label39:
    return !localj.r(paramld.n()).e();
  }
  
  public void e(ld paramld)
  {
    int j = j.v;
    boolean bool = j.u;
    if ((j != 0) || ((paramld instanceof n)))
    {
      n localn = (n)paramld;
      if (j == 0)
      {
        if (!localn.U()) {
          return;
        }
        localn.f(false);
      }
      if (j == 0)
      {
        if (!localn.h()) {
          if (j != 0) {
            break label233;
          }
        }
      }
      else {
        if (!f(localn)) {
          break label231;
        }
      }
      Object localObject = n(paramld);
      if (localObject == null)
      {
        if ((j != 0) || (a()))
        {
          Dimension2D localDimension2D = h(localn);
          if (j != 0) {
            break label136;
          }
          localObject = new s(localDimension2D.getWidth(), localDimension2D.getHeight());
          if (!bool) {
            break label137;
          }
        }
        label136:
        localObject = new s(1.0D, 1.0D);
      }
      label137:
      double d1 = localn.c();
      double d2 = localn.d();
      int i = 0;
      if (j == 0) {
        if (d1 < ((s)localObject).b())
        {
          d1 = ((s)localObject).b();
          i = 1;
        }
      }
      if (j == 0) {
        if (d2 < ((s)localObject).c())
        {
          d2 = ((s)localObject).c();
          i = 1;
        }
      }
      if (j == 0)
      {
        if (i != 0) {
          localn.a(localn.a(), localn.b(), d1, d2);
        }
      }
      else if (bool)
      {
        label231:
        label233:
        localObject = g(paramld);
        paramld.a(((Rectangle2D)localObject).getX(), ((Rectangle2D)localObject).getY(), ((Rectangle2D)localObject).getWidth(), ((Rectangle2D)localObject).getHeight());
      }
    }
  }
  
  protected Rectangle2D g(ld paramld)
  {
    int i = j.v;
    double d1 = paramld.a();
    double d2 = paramld.b();
    double d3 = paramld.c();
    double d4 = paramld.d();
    Object localObject = new Rectangle2D.Double(d1, d2, d3, d4);
    if ((i != 0) || ((paramld instanceof n)))
    {
      n localn = (n)paramld;
      u localu = localn.j();
      localObject = l(paramld);
      d1 = ((Rectangle2D)localObject).getX() - localu.c;
      d2 = ((Rectangle2D)localObject).getY() - localu.b;
      if (i == 0)
      {
        if (a())
        {
          Dimension2D localDimension2D = h(localn);
          d3 = Math.max(((Rectangle2D)localObject).getWidth() + localu.c + localu.e, localDimension2D.getWidth());
          d4 = Math.max(((Rectangle2D)localObject).getHeight() + localu.b + localu.d, localDimension2D.getHeight());
          if (i != 0) {
            break label236;
          }
          if (!j.u) {}
        }
        else
        {
          d3 = ((Rectangle2D)localObject).getWidth() + localu.c + localu.e;
        }
      }
      else {
        d4 = ((Rectangle2D)localObject).getHeight() + localu.b + localu.d;
      }
      ((Rectangle2D)localObject).setFrame(d1, d2, d3, d4);
      label236:
      return localObject;
    }
    return localObject;
  }
  
  protected Dimension2D h(ld paramld)
  {
    int i = j.v;
    boolean bool3 = j.u;
    Dimension localDimension = new Dimension();
    if ((i != 0) || (paramld.x() > 0))
    {
      jg localjg1 = paramld.w();
      byte b1 = localjg1.Z();
      double d1;
      if (i == 0) {
        if (b1 == 4)
        {
          d1 = localjg1.g();
          d2 = localjg1.k();
          if ((i == 0) && (!bool3)) {
            break label177;
          }
        }
      }
      if ((i != 0) || (b1 != 0))
      {
        boolean bool1 = localjg1.n();
        boolean bool2 = localjg1.m();
        d4 = localjg1.g();
        double d5 = localjg1.k();
        localjg1.h((byte)0);
        localjg1.r();
        d1 = localjg1.g();
        d2 = localjg1.k();
        localjg1.h(b1);
        localjg1.a(d4, d5);
        localjg1.c(bool2);
        localjg1.d(bool1);
        if (i == 0) {
          if (!bool3) {
            break label177;
          }
        }
      }
      else
      {
        d1 = localjg1.g();
      }
      double d2 = localjg1.k();
      label177:
      double d3 = 0.0D;
      double d4 = 0.0D;
      if ((i != 0) || ((paramld instanceof n)))
      {
        n localn = (n)paramld;
        String str = localn.g();
        if (i == 0) {}
        md.t_ localt_ = (md.t_)md.e().a(str, b == null ? (c.b = a("a.j.md$t_")) : b);
        if ((i != 0) || ((localt_ instanceof h)))
        {
          h localh = (h)localt_;
          jg localjg2 = localh.d(paramld);
          if (i == 0)
          {
            if (localjg2 != null) {
              d3 = localjg2.S();
            }
          }
          else {
            d4 = localjg2.T();
          }
        }
      }
      localDimension.setSize(d1 + d3, Math.max(d2, d4));
    }
    return localDimension;
  }
  
  public Rectangle2D c(ld paramld)
  {
    Rectangle2D localRectangle2D = i(paramld);
    u localu = m(paramld);
    if (j.v == 0) {
      if (localRectangle2D != null) {
        localRectangle2D.setFrame(localRectangle2D.getX() - localu.c, localRectangle2D.getY() - localu.b, localRectangle2D.getWidth() + localu.c + localu.e, localRectangle2D.getHeight() + localu.b + localu.d);
      }
    }
    return localRectangle2D;
  }
  
  public Rectangle2D i(ld paramld)
  {
    int i = j.v;
    boolean bool = j.u;
    if ((i != 0) || ((paramld instanceof n)))
    {
      n localn = (n)paramld;
      u localu = m(localn);
      if ((i != 0) || ((!localn.h()) && (!f(localn))))
      {
        Rectangle2D.Double localDouble = new Rectangle2D.Double(-1.0D, -1.0D, -1.0D, -1.0D);
        j localj = k(paramld);
        if (localj != null)
        {
          localObject = localn.n();
          g localg = (g)((e)localObject).g();
          if ((i != 0) || ((localj.m((e)localObject)) && ((i != 0) || (localj.r((e)localObject).k() > 0))))
          {
            w localw = localj.r((e)localObject);
            do
            {
              while (!bool)
              {
                if (!localw.e()) {
                  break;
                }
                a(localg, localw.d(), localDouble);
                localw.f();
              }
            } while (i != 0);
            return localDouble;
          }
        }
        Object localObject = m(localn);
        return new Rectangle2D.Double(paramld.a() + ((u)localObject).c, paramld.b() + ((u)localObject).b, paramld.c() - ((u)localObject).c - ((u)localObject).e, paramld.d() - ((u)localObject).b - ((u)localObject).d);
      }
      return new Rectangle2D.Double(paramld.a(), paramld.b(), localu.c + localu.e, localu.b + localu.d);
    }
    return new Rectangle2D.Double(paramld.a(), paramld.b(), paramld.c(), paramld.d());
  }
  
  protected void a(g paramg, e parame, Rectangle2D paramRectangle2D)
  {
    paramg.w(parame).b(paramRectangle2D);
  }
  
  public u d(ld paramld)
  {
    int i = j.v;
    boolean bool = j.u;
    if ((i != 0) || ((paramld instanceof n)))
    {
      n localn = (n)paramld;
      double d1 = 0.0D;
      double d2 = 0.0D;
      double d3 = 0.0D;
      double d4 = 0.0D;
      if (i == 0) {
        if (localn.x() > 0)
        {
          if (i != 0) {
            break label345;
          }
          localObject = localn.w();
          if (((jg)localObject).B())
          {
            if (i == 0) {}
            switch (((jg)localObject).C())
            {
            case 102: 
            case 117: 
            case 118: 
              if (i == 0)
              {
                if (((jg)localObject).Z() == 2) {
                  break label344;
                }
                if (i != 0) {}
              }
              else
              {
                if (((jg)localObject).Z() == 3) {
                  break label344;
                }
                d1 = ((jg)localObject).T();
              }
              if ((i == 0) && (!bool)) {}
              break;
            case 101: 
            case 119: 
            case 120: 
              if (i == 0)
              {
                if (((jg)localObject).Z() == 2) {
                  break label344;
                }
                if (i != 0) {}
              }
              else
              {
                if (((jg)localObject).Z() == 3) {
                  break label344;
                }
                d2 = ((jg)localObject).T();
              }
              if ((i == 0) && (!bool)) {}
              break;
            case 115: 
              if (i == 0)
              {
                if (((jg)localObject).Z() == 1) {
                  break label344;
                }
                if (i != 0) {
                  break;
                }
              }
              else
              {
                if (((jg)localObject).Z() == 3) {
                  break label344;
                }
                d3 = ((jg)localObject).S();
              }
            case 116: 
              if (((i != 0) || (bool)) && ((i != 0) || ((((jg)localObject).Z() != 1) && ((i != 0) || (((jg)localObject).Z() != 3))))) {
                d4 = ((jg)localObject).S();
              }
              break;
            }
          }
        }
      }
      label344:
      label345:
      Object localObject = localn.i();
      return new u(((u)localObject).b + d1, ((u)localObject).c + d3, ((u)localObject).d + d2, ((u)localObject).e + d4);
    }
    return new u(0.0D, 0.0D, 0.0D, 0.0D);
  }
  
  public u j(ld paramld)
  {
    int i = j.v;
    boolean bool = j.u;
    if ((i != 0) || ((paramld instanceof n)))
    {
      n localn = (n)paramld;
      double d1 = 0.0D;
      double d2 = 0.0D;
      double d3 = 0.0D;
      double d4 = 0.0D;
      if (i == 0) {
        if (localn.x() > 0)
        {
          if (i != 0) {
            break label345;
          }
          localObject = localn.w();
          if (((jg)localObject).B())
          {
            if (i == 0) {}
            switch (((jg)localObject).C())
            {
            case 102: 
            case 117: 
            case 118: 
              if (i == 0)
              {
                if (((jg)localObject).Z() == 2) {
                  break label344;
                }
                if (i != 0) {}
              }
              else
              {
                if (((jg)localObject).Z() == 3) {
                  break label344;
                }
                d1 = ((jg)localObject).T();
              }
              if ((i == 0) && (!bool)) {}
              break;
            case 101: 
            case 119: 
            case 120: 
              if (i == 0)
              {
                if (((jg)localObject).Z() == 2) {
                  break label344;
                }
                if (i != 0) {}
              }
              else
              {
                if (((jg)localObject).Z() == 3) {
                  break label344;
                }
                d2 = ((jg)localObject).T();
              }
              if ((i == 0) && (!bool)) {}
              break;
            case 115: 
              if (i == 0)
              {
                if (((jg)localObject).Z() == 1) {
                  break label344;
                }
                if (i != 0) {
                  break;
                }
              }
              else
              {
                if (((jg)localObject).Z() == 3) {
                  break label344;
                }
                d3 = ((jg)localObject).S();
              }
            case 116: 
              if (((i != 0) || (bool)) && ((i != 0) || ((((jg)localObject).Z() != 1) && ((i != 0) || (((jg)localObject).Z() != 3))))) {
                d4 = ((jg)localObject).S();
              }
              break;
            }
          }
        }
      }
      label344:
      label345:
      Object localObject = localn.i();
      return new u(((u)localObject).b + d1, ((u)localObject).c + d3, ((u)localObject).d + d2, ((u)localObject).e + d4);
    }
    return new u(0.0D, 0.0D, 0.0D, 0.0D);
  }
  
  protected j k(ld paramld)
  {
    e locale = paramld.n();
    if (j.v == 0) {
      if (locale == null) {
        return null;
      }
    }
    return j.a(locale.g());
  }
  
  public void a(ld paramld, jg paramjg)
  {
    int i = j.v;
    if (i == 0)
    {
      if (!a()) {
        return;
      }
      if (i != 0) {}
    }
    else if ((paramld instanceof n))
    {
      n localn = (n)paramld;
      String str = localn.g();
      if (i == 0) {}
      md.t_ localt_ = (md.t_)md.e().a(str, b == null ? (c.b = a("a.j.md$t_")) : b);
      jg localjg = null;
      if ((i != 0) || ((localt_ instanceof h)))
      {
        h localh = (h)localt_;
        localjg = localh.d(paramld);
      }
      if (((i != 0) || (paramjg != paramld.w())) && (((i == 0) && (localjg == null)) || (paramjg != localjg))) {
        return;
      }
      if (i != 0) {
        break label169;
      }
      paramld.b(new Rectangle2D.Double());
      if (!j.u) {
        return;
      }
    }
    label169:
    paramld.b(new Rectangle2D.Double());
  }
  
  public s a(ld paramld)
  {
    int i = j.v;
    u localu = m(paramld);
    double d1 = localu.c + localu.e;
    double d2 = localu.b + localu.d;
    Object localObject;
    if (i == 0) {
      if (a())
      {
        localObject = h(paramld);
        locals = new s(Math.max(d1, ((Dimension2D)localObject).getWidth()), Math.max(d2, ((Dimension2D)localObject).getHeight()));
        if ((i == 0) && (!j.u)) {
          break label138;
        }
      }
    }
    if ((i != 0) || ((paramld instanceof n)))
    {
      localObject = (n)paramld;
      if (((n)localObject).h()) {
        return new s(1.0D, 1.0D);
      }
    }
    s locals = new s(d1, d2);
    label138:
    return locals;
  }
  
  public s b(ld paramld)
  {
    return new s(2147483647.0D, 2147483647.0D);
  }
  
  private Rectangle2D l(ld paramld)
  {
    b localb = paramld.K();
    if (j.v == 0) {
      if (localb == null)
      {
        Rectangle2D.Double localDouble = new Rectangle2D.Double(0.0D, 0.0D, -1.0D, -1.0D);
        paramld.b(localDouble);
        return localDouble;
      }
    }
    return localb.f();
  }
  
  private u m(ld paramld)
  {
    b localb = paramld.K();
    if (j.v == 0) {
      if (localb == null) {
        return new u(0.0D, 0.0D, 0.0D, 0.0D);
      }
    }
    return localb.g();
  }
  
  private s n(ld paramld)
  {
    qe localqe = paramld.L();
    if (j.v == 0) {
      if (localqe == null) {
        return null;
      }
    }
    return localqe.k();
  }
  
  static Class a(String paramString)
  {
    try
    {
      return Class.forName(paramString);
    }
    catch (ClassNotFoundException localClassNotFoundException)
    {
      throw new NoClassDefFoundError(localClassNotFoundException.getMessage());
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.j.a.c

 * JD-Core Version:    0.7.0.1

 */